import requests

# user_info = {'name': ['letian', 'letian2'], 'password': '123'}
# r = requests.post("http://127.0.0.1:5000/register", data=user_info)
#
# print(r.text)

# json_data = {'a': 1, 'b': 2}
# r = requests.post("http://127.0.0.1:5000/add", json=json_data)
#
# print(r.headers)
# print(r.text)


file_data = {'image': open('gui.jpg', 'rb')}

user_info = {'info': 'gui'}

r = requests.post("http://127.0.0.1:5001/upload", data=user_info, files=file_data)

# print(r.text)